<script type="text/javascript">
$('.add-to-contacts').click(function() {
    $('#contact_email').val($(this).data('email'));
    $('#add-to-contacts-form').submit();
});
</script>
